import request from '@/utils/request'

export function getShopList(params) {
  return request({
    url: '/getShops',
    method: 'get',
    params
  })
}

export function deleteShop(Shop_id) {
  return request({
    url: `/deleteShop/${Shop_id}`,
    method: 'delete'
  })
}

export function addShop(data) {
  return request({
    url: '/addShop',
    method: 'post',
    data,
    headers: {
      'Content-type': 'application/json; charset=utf-8'
    }
  })
}
